package com.demo.blog.common.exception;

import com.demo.blog.common.enums.ResultCodeEnum;
import com.demo.blog.pojo.response.Result;

public class BlogException extends RuntimeException{
    private Result errorresult = new Result();
    public BlogException(String errMsg) {
        this.errorresult.setCode(ResultCodeEnum.FAIL.getCode());
        this.errorresult.setErrMsg(errMsg);
    }
}
